<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑医生</title>
    <style>
        #img img{
            /*float:left;*/
            display: inline-block;
            width: 80px;
            height: 80px;
            border-radius: 10%;
            margin-left: 10px;
        }
    </style>
</head>
<body>
<div class="pd-20">
    <form action="{:U('editstatus')}" method="post" class="form form-horizontal" id="form">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>头像：</label>
            <div class="formControls col-5">
                <if condition="$data['cover']">
                    <img src="__UPS__{$data['cover']}" class="cover"/>
                    <else/>
                    <img src="__AIMG__no_cover.png" class="cover"/>
                </if>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>所在医院：</label>
            <div class="formControls col-5">
                <label>{$data.hospital.name|default="暂无"}</label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>科室：</label>
            <div class="formControls col-5">
                <label>{$data.department.name|default="暂无"}</label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>职称：</label>
            <div class="formControls col-5">
                <label>{$data.position.name|default="暂无"}</label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>医师资格证：</label>
            <div class="formControls col-9" id="img">
                <?php $imgs=explode(",",$data['certcover']);?>
                <div id="layer-photos-demo" class="layer-photos-demo">
                    <volist name="imgs" id="v">
                        <img src="__UPS__{$v}"   layer-index="{$key}">
                    </volist>
                </div>
            </div>
        </div>
        <div class="row cl" >
            <label class="form-label col-3">年龄：</label>
            <div class="formControls col-5">
                <label>
                    <if condition="$data.birthday">{:birthday2($data['birthday'])}</if>
                    <if condition="!$data.birthday"></if>
                </label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">真实姓名：</label>
            <div class="formControls col-6">
                <label>{$data.realname|default="暂无"}</label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">手机号：</label>
            <div class="formControls col-5">
                <label>{$data.phone|default="暂无"}</label>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>审核：</label>
            <div class="formControls col-5">
                <span class="select-box">
                <select class="select" size="1" name="status" datatype="*" nullmsg="请选择">
                    <option selected disabled="disabled">请选择</option>
                    <option value="1" <if condition="$data['status'] eq 1"> selected</if>>通过</option>
                    <option value="2" <if condition="$data['status'] eq 2"> selected</if>>未通过</option>
                </select>
                </span>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <div class="col-5 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
</div>
<include file="Common:footer_include"/>
<script>
    layer.photos({
        photos: '#layer-photos-demo',
        tab: function(pic, layero){
            console.log(pic) //当前图片的一些信息
        }
    });
</script>
</body>
</html>